package com.wuditp.smile.core.domain;

import javax.persistence.Column;
import javax.persistence.MappedSuperclass;

/**
 * 普通实体模型基类 <li>Id生成策略为Assigned</li>
 * 
 * @author kevin.tao
 * 
 */
@MappedSuperclass
public abstract class DomainInstance extends AssignedIdentifier implements CodeNameable {

	private static final long serialVersionUID = 1L;

	@Column(name = "code")
	protected String code;

	@Column(name = "name")
	protected String name;

	@Override
	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	@Override
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
}
